<?php session_start(); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<head>

	<meta charset="utf-8">

    <title>Broker/Customer Edit</title>

<?php echo link_tag(my_url().'skin.css'); ?>

<script type="text/javascript" src="<?php echo my_url(); ?>js/timeFormat.js"></script>

<script type="text/javascript" src="<?php echo my_url(); ?>js/1.js"></script>

<script type="text/javascript" src="../js/1.js"></script>

<script src="<?php echo my_url(); ?>js/AC_RunActiveContent.js" type="text/javascript"></script>

<script language="javascript" type="text/javascript">

 var BaseURL='<?php echo base_url(); ?>';

function redirect(location){

	

	window.location.href= location;

}



</script>



<link rel="stylesheet" href="../skin.css" type="text/css" media="screen" /><meta name="author" content="Jaypee Mahilum" />

<link rel="stylesheet" href="style.css" type="text/css" media="screen" />

<link href="skin.css" rel="stylesheet" type="text/css" />

</head>



<?php

//echo $_SESSION['administrator_log']."============";

if(!isset($_SESSION['administrator_log']))

{

		echo"Log in first to access this page<html><title>WARNING</title><body><br><a href='".base_url()."administrator' />click here to log in.</a></body></html>";

}

else

{

?>

<body >



	<div class="BodyCover">

	

 		<div class="ParentContent">

	        <?php require("at_menu.php"); ?>

			<div class="MenuTab">

    			<div class="MenuBelow"><img src="<?php echo my_url();?>images/below-menu.gif"></div>        

             </div>



			<br /><br />	

			<div class="module-index1">

		  		<div align="right"><a href="<?php echo base_url()?>admin/logout" style="color:#FF0000;">logout</a></div><br/>

  	                <p class=""><?php if (isset($recordflag)) {echo $recordflag;}?><p>

			   <h1>Edit Broker/Customer </h1>

               

                     

                 <form action="<?php echo base_url()?>bc/p_edit_bc/" method="post">

                <input type="hidden" name="hid_broker_code" value="<?php echo $info->broker_code ?>"  />

                <label>Company Name:</label><input name="bc_company_name" value="<?php echo $info->bc_company_name ?>" /> <br />

                <label>Nick Name:</label><input name="bc_n_name" value="<?php echo $info->bc_n_name ?>" /> <br />

                <label>First Name:</label><input name="f_name" value="<?php echo $info->f_name ?>"/> <br />

                <label>Last Name:</label><input name="l_name" value="<?php echo $info->l_name ?>"/><br />

                <label>Address:</label><input name="address" value="<?php echo $info->address ?>"/><label>City:</label><input size="10"name="city" value="<?php echo $info->city ?>" />

                <label>State:</label> <?php  echo select_list("state","state","state","state_id","","name=state",$info->state); ?>

                <label>Zipcode:</label><input size="5" name="zipcode" value="<?php echo $info->zipcode ?>" /> <br />

                <label>Mobile Number:</label><input name="cell_phone_num" value="<?php echo $info->cell_phone_num ?>" /> <br />

                <label>ALT Number:</label><input name="alt_phone_num" value="<?php echo $info->alt_phone_num ?>" /> <br />

                <label>Office Number:</label><input name="office_phone_num" value="<?php echo $info->office_phone_num?>" /> <br />

               <label>Fax Number:</label><input name="fax_num" value="<?php echo $info->fax_num?>" /> <br />

                <label>Email Address:</label><input name="email_add" value="<?php echo $info->email_add ?>" /><br />

                <label>MC Number:</label><input name="mc_num"  value="<?php echo $info->mc_num?>" /> <br />

                <label>Rep:</label><input name="rep"  value="<?php echo $info->rep?>" /> <br />

                <label>Comment:</label><textarea name="bc_comment_box"/><?php echo $info->bc_comment_box?></textarea> <br />

              	<input type="submit"  value="Save" name="cmdsave">

                                

				<input type="button"  value="Cancel" onclick="redirect(BaseURL+'bc')" name="cmdcancel">

				</form>
 
    		<br>
 
            <div class="BodyContent">

            </div>	

		 
		</div><!---end of ParentContent ---->
			<div class="Footer1">	

                <div class="Footer">Copyright &copy; 2011. All Rights Reserved <br><br>

                 <a href="http://webmartis.com"> <img src="<?php echo my_url();?>images/wmlink.png"></a>
 
                </div>                

            </div> <!---end of Footer1 ---->        

    </div> <!---end of BodyCover ---->

</body>

<?php } ?>

</html>



